package
{
	/**
	 * @author rob.thurston
	 */
	public class States
	{
		public static const PICK_UP : String = "PICK_UP";
		public static const MINE : String = "MINE";
		public static const DRAW_DAMAGE : String = "DRAW_DAMAGE";
		public static const DRAW_NO_DAMAGE : String = "DRAW_NO_DAMAGE";
		public static const REPELLER : String = "REPELLER";
		public static const ATTRACTOR : String = "ATTRACTOR";
		public static const REACTOR : String = "REACTOR";
		public static const LASER : String = "LASER";
		public static const HATCH : String = "HATCH";
		public static const REACTOR_DOOR : String = "REACTOR_DOOR";
		public static const SWITCH_DOOR : String = "SWITCH_DOOR";
		public static const REACTOR_GRAVITY : String = "REACTOR_GRAVITY";
		public static var laserWidth : Number;
		public static var laserHorizontal : Boolean;
		public static var gridSize : Number = 18;
		
		private static var STATE : String;
		public static var level : Number;
		public static var hatchSize : Number;
		public static var reactorDoorHorizontal : Boolean;
		public static var reactorDoorWidth : Number;
		public static var reactorDoorOpen : Boolean;
		public static var switchDoorWidth : Number;
		public static var switchDoorHorizontal : Boolean;
		public static var switchDoorOpen : Boolean;
		public static var switchDoorTopLeft : Boolean;
		public static var laserOn : Number;
		public static var laserOff : Number;
		public static var zone : Number;

		public static function get drawing() : Boolean
		{
			return (STATE == DRAW_DAMAGE || STATE == DRAW_NO_DAMAGE);
		}

		public static function set state(state : String) : void
		{
			STATE = state;
		}

		public static function get state() : String
		{
			return STATE;
		}
	}
}
